<?php
namespace app\index\Validate;
use think\Validate;

class Life extends Validate{

    //验证规则
    protected $rule = [
        'sl_uid'       =>'require',
        'sl_content'   =>'require',
    ];

    protected $message  =  [
        'sl_uid.require'    => '用户id缺失',
        'sl_content.require'=> '内容不能为空',
    ];


}